//
//  ZCProjectdetailsSponsorCell.m
//  zctx
//
//  Created by apple on 15/11/25.
//  Copyright © 2015年 sanliang. All rights reserved.
//

#import "ZCProjectdetailsSponsorCell.h"

@implementation ZCProjectdetailsSponsorCell

- (void)awakeFromNib {
    // Initialization code
    self.iconImgView.layer.masksToBounds = YES;
    self.iconImgView.layer.cornerRadius = self.heightConstraint.constant/2;
    self.moblieLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.moneyLable.textColor = [UIColor colorWithHexString:@"#f8a00a"];
    self.timeLable.textColor = [UIColor colorWithHexString:@"#b2b2b2"];
    
}


-(void)setModel:(ZCInvolvedDetailsModelHotSponsors *)Model{
     NSLog(@"5");
    
//    NSLog(@"model = %@",Model);
    _Model = Model;
    self.moblieLable.text = [NSString stringWithFormat:@"%@",Model.username];
    NSInteger money = [Model.money intValue]/100;

    self.moneyLable.text =[NSString stringWithFormat:@"￥%ld元",(long)money];
    int timeInt =[Model.paytime intValue];
    self.timeLable.text = [NSString stringWithFormat:@"%@",stringDataWithTimeInterval(timeInt)];

    NSString *imageStr = Model.avatar;
    if (imageStr.length>0) {
        [self.iconImgView sd_setImageWithURL:[NSURL URLWithString:imageStr] placeholderImage:[UIImage imageNamed:@"projectdetail_icon"]];
    }else{
        self.iconImgView.image = [UIImage imageNamed:@"projectdetail_icon"];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
